package com.hoshiicloud.goods.param.sku;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author qry
 * @date 2019/9/10 15:37
 * 可添加 不等于 等条件  该类用来扩展查询条件
 */
@ApiModel("查询BaseSku集合查询入参")
@Data
public class SkuBaseListParam implements Serializable {

    @ApiModelProperty("spuId")
    private Long spuId;

    @ApiModelProperty("sku编号")
    private String skuNo;

    @ApiModelProperty("条形码")
    private String barCode;

    @ApiModelProperty("箱码")
    private String packetCode;

    @ApiModelProperty("是否负库存")
    private Integer isStored;

    @ApiModelProperty("属性")
    private String extendProperty;

    @ApiModelProperty("规格")
    private String extendSpec;

    @ApiModelProperty("sku商品标题")
    private String skuTitle;

    @ApiModelProperty("创建时间")
    private LocalDateTime createdTime;

    @ApiModelProperty("修改时间")
    private LocalDateTime updatedTime;

    @ApiModelProperty("建立人")
    private String createdBy;

    @ApiModelProperty("修改人")
    private String updatedBy;

    @ApiModelProperty("状态  0-档案 1-已审批 2-下架")
    private Integer status;

    @ApiModelProperty("销售单位")
    private String salesUnit;

    @ApiModelProperty("商品重量")
    private BigDecimal weight;

    @ApiModelProperty("采购策略  1-指定供应商 2-系统派单")
    private Integer strategy;

    @ApiModelProperty("自己作为供应商  1-是 2-否")
    private Integer vendorSelf;

    @ApiModelProperty("指定供应商ID")
    private Long vendorId;

    @ApiModelProperty("库存检验逻辑：1-库存足够才能下单 2-库存不够也能下单")
    private Integer stockEnough;

    @ApiModelProperty("租户ID")
    private Long companyId;

    @ApiModelProperty("平台ID")
    private Long platformId;

    @ApiModelProperty("店铺ID")
    private Long storeId;

    @ApiModelProperty("是否删除")
    private Integer deleted;

    @ApiModelProperty("是否允许分销 0-不允许分销 1-允许分销")
    private Integer distributorStatu;

    @ApiModelProperty("是否允许分店编辑售价 0-不允许 1-允许")
    private Integer editStatu;

    @ApiModelProperty("最低售价（逻辑：允许编辑价格但不得低于最低售价）")
    private BigDecimal minimumPrice;

    @ApiModelProperty("是否有其他的业务转换,0否 1是")
    private Integer changeOther = 0;
}
